<!doctype html>
<html>

<head>
	<meta charset="utf-8">
	<% include  ./template/commonCss.ejs %>
	<link href="<%=resUrl%>/css/my/receive_address.css" rel="stylesheet" type="text/css" />
	<% include ./template/commonJs.ejs %>
</head>

<body ontouchstart>
		<% var topTitle = '我的收货地址';var topReturnType = '' %>
		<% include ./template/topReturn.ejs %>
		<% include ./template/chatLister.ejs %>
	<div id="aroundBox" <%if(locals.token && token != ''){%>style="top:0;"<%}%> >
		<div class="weui-pull-to-refresh__layer" style="padding: 5px;">
			<div class="weui-pull-to-refresh__arrow"></div>
			<div class="weui-pull-to-refresh__preloader"></div>
			<div class="down">下拉刷新</div>
			<div class="up">释放刷新</div>
			<div class="refresh">正在刷新</div>
		</div>
		<div class="address" id="contentTo">
		
		</div>
		<div class="weui-loadmore" id="loadmore">
			<i class="weui-loading"></i>
			<span class="weui-loadmore__tips">正在加载</span>
		</div>
		<div class="weui-loadmore weui-loadmore_line" style="display:none;" id="nomore">
			<span class="weui-loadmore__tips">全部加载完毕</span>
		</div>
	</div>
    <div class="footer">
        <a href="javascript:visitUrl('/add_address',true)">添加收货地址</a>
	</div>
	<script id="content" type="text/html">
		{{each list}}
		<div class="item {{if $value.isDefault == 1}}current{{/if}}">
			<div class="name">{{$value.name}}</div>
			<div class="info">
				<div class="row">{{$value.areaNames}}</div>
				<div class="row">{{$value.address}}</div>
				<div class="row">联系电话：{{$value.phone}}</div> 
			</div>
			<div class="state">
				<i class="iconfont icon-dagoux" style="font-size:0.6rem;"></i>
			</div>
			<div class="auto-height"></div>
			<div class="order-bottom">
				<a href="javascript:visitUrl('/update_address?id={{$value.id}}',true)">
				<div class="order-bots" >编辑</div>
				</a>
				<div class="order-bots" onclick="delAdree('{{$value.id}}');">删除</div>
				{{if $value.isDefault != 1}}
				<div class="order-bots" onclick="defAdree('{{$value.id}}');">设为默认</div>
				{{/if}}
			</div>
		</div>
		{{/each}}
	</script>
	<script type="text/javascript" src="<%=resUrl%>/js/receive_address.js"></script>
</body>

</html>